define(function(require){
	var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");
	
	var Model = function(){
		this.callParent();
	};

	Model.prototype.result = function(){
		//这里实现返回的逻辑
	};

    //接受数据
	Model.prototype.wReceiverReceive = function(event){
       var data=this.comp('zhuanjia');
       data.clear();
       data.loadData([this.params.rowdata]);
       data.first(); 
      
	};
   

	Model.prototype.button1Click = function(event){
	  this.close();
      $.ajax({
        type: "GET",
        url: window.yuming+'/videoconnects/vc/stop?id='+window.roomid+'&login-token='+window.token,     
        async: false,
        cache: false,

        success: function(datas){
               
               justep.Shell.showPage("main");
             
            },
        error: function(XMLHttpRequest){

         
        }
    });
	};
   

	return Model;
});